if exists('g:loaded_trainer') || &compatible
  finish
endif
let g:loaded_trainer = 1

" 检查Python3支持
if !has('python3')
  echoerr "Trainer requires Python3 support"
  finish
endif

" 用户命令
command! -nargs=0 TrainerStart call trainer#core#start()
command! -nargs=1 TrainerLoad call trainer#core#load_task_json(<f-args>)